package org.softee.functional.helper;

public class Preconditions {
    /**
     * Intentionally non-instantiable
     */
    private Preconditions() {

    }

    public static void notNull(Object obj) {
        if (obj == null) {
            throw new NullPointerException();
        }
    }

    public static void assertArgument(boolean b) {
        if (!b) {
            throw new IllegalArgumentException();
        }

    }
}
